<?php
	class newsviewModel extends viewModel{
		public $table = 'news';
		public $view = array(
				"category" => array(
						"join_type" => "inner",
						"on" => "news.catid = category.catid"
				),
				"user" => array(
						"join_type" => "inner",
						"on" => "news.uid = user.uid"
						)
				);
	}

?>